import Mock from 'mockjs'
import { userList } from './user'
import { messageList } from './message'

// 配置Ajax请求延时，可用来测试网络延迟大时项目中一些效果
Mock.setup({
  timeout: 1000
})

// 接口
Mock.mock(/\/api\/worker_inout/, userList)
Mock.mock(/\/api\/perimeter/, messageList)

export default Mock
